import { useLocation, useNavigate } from "react-router-dom"
import PersonManage from "../../../components/personManage";
import { Button } from "antd-mobile";


const TripDetail = () => {
  const location = useLocation();
  const v = location.state
  const navigate = useNavigate()
  const toOrder = () => {
    navigate('/order')
  }
  return (
    <div>
      <div style={{ height: 200, background: 'red' }}>
        航空信息
      </div>
      <div>
        <h2>乘客</h2>
        <PersonManage></PersonManage>
      </div>

      <Button color="primary" block onClick={() => toOrder()}>立即下单</Button>
    </div>
  )
}

export default TripDetail